package cn.madis.ymcc.service;

import cn.madis.ymcc.domain.CourseOrder;
import cn.madis.ymcc.dto.PayNotifyDto;
import cn.madis.ymcc.vo.CoursePlaceOrderVo;
import com.baomidou.mybatisplus.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Zt
 * @since 2022-08-18
 */
public interface ICourseOrderService extends IService<CourseOrder> {
    /*下单*/
    String placeOrder(CoursePlaceOrderVo coursePlaceOrderVo);
    /*保存Order和Item*/
    void savaOrderItem(CourseOrder courseOrder);

    CourseOrder selectByOrderNo(String orderNo);
    /*修改CourseOrder状态*/
    void updateOrderPay(PayNotifyDto aliPayNotifyDto);
    /*支付超时取消订单逻辑*/
    void payTimeOutCancelOrder(String orderNo);
    /*秒杀下单返回订单号*/
    String killPlaceOrder(CoursePlaceOrderVo coursePlaceOrderVo);
}
